package com.itgaoshu.service.impl;

import com.itgaoshu.bean.Report;
import com.itgaoshu.mapper.ReportMapper;
import com.itgaoshu.service.ReportSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ReportServiceImpl implements ReportSerivce {
    @Autowired
   private ReportMapper reportMapper;


    //查询挂号单的方法
    public List<Report> listReporty() {
        reportMapper.selectAll();
        return reportMapper.listReport();
    }
   //添加挂号单的方法
    public int addreport(Report report) {
        return reportMapper.addreport(report);
    }

    public int deletereporbyid(int reporid ){
  //删除挂号单的方法
        return reportMapper.deletereportbyid(reporid);
    };
}
